{% extends "store/base.html" %}

{% block content %}
    <form class="form" method="post" enctype="multipart/form-data">
      {% csrf_token %}
      <div class="form-group">
        <label class="">类型名称</label>
        <input class="form-control" type="text" name="t_name" value="{{ t.type_name }}">
      </div>

      <div class="form-group">
        <label class="">类型图片</label>
        <input class="form-control" type="file" name="t_picture" value="{{ t.type_picture.url }}">
      </div>
      <button class="btn btn-primary fa-pull-right" type="submit">提交商品类型</button>
  </form>
{% endblock %}